package com.bsoft.project.base;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 褚国强
 * @Date: 2020/07/13/15:55
 * @Description:
 * 异常处理类
 */
public class BizException extends RuntimeException{

    /**
	 * 
	 */
	private static final long serialVersionUID = 5208525370355413628L;

	private String errorCode; //错误编码

    private String message; //错误信息

    public BizException(String errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

    public String getErrorCode(String errorCode) {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
